package java67_adv7;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

import review.KindMan;

public class ObjGet {

	public static void main(String[] args) throws Exception {
		ObjectInputStream oin = new ObjectInputStream(new FileInputStream("goodman.obj"));
		KindMan m = (KindMan) oin.readObject();
		oin.close();
		System.out.println("找到了好人:" + m);
	}

}
